export type CacheType="TOKEN"
/*获取缓存*/
export const getItem = (key:CacheType) => {
return localStorage.getItem(key||'')
}
/**添加缓存**/
export const setItem=(key:CacheType,value:string)=>{
  localStorage.setItem(key,value)
}
/**清除缓存**/
export const clear = () => {
  localStorage.clear()
}